/** FASSIT (Forms of Selective Attention in Intelligent Transportation Systems)
 * Computational Creativity and Digital Media
 * Cognitive and Media Systems Group
 * Centre for Informatics and Systems of the University of Coimbra (CISUC)
 *
 * Copyright (c) 2010-2013 University of Coimbra, Portugal
 * All rights reserved.
 */
package poi.Info;

import java.io.Serializable;

import com.ginsberg.gowalla.dto.GeoPoint;

/**
 * This class is used to store the POI's location (latitude, longitude)
 * 
 * @author Hernani Costa
 * @version 0.1 date: 20/11/2012
 */
public class Location implements Serializable {
	private static final long serialVersionUID = 1L;
	private GeoPoint geoPoint;

	public Location(double latitude, double longitude) {
		this.geoPoint = new GeoPoint(latitude, longitude);
	}

	// ------------------------------------------------------------------------
	// ------------------------GETs and SETs-----------------------------------
	// ------------------------------------------------------------------------

	public GeoPoint getGeoPoint() {
		return geoPoint;
	}
	
	public double getLatitude() {
		return geoPoint.getLatitude().doubleValue();
	}
	
	public double getLongitude() {
		return geoPoint.getLongitude().doubleValue();
	}
	

}
